<?php
use kartik\tabs\TabsX;
use yii\helpers\Url;
use yii\helpers\Html;
$items = [
    [
        'label'=>'<i class="glyphicon glyphicon-home"></i> 基本信息',
        'active'=>true,
        'content' =>  $this->render('_form', [
            'model' => $model,
            'detailmodel' => $detailmodel
        ])
    ],
    [
        'label'=>'<i class="glyphicon glyphicon-home"></i> 添加订货单明细',
        'active'=>false,
        'content' =>  $this->render('_salorder', [
            'model' => $model,
            'detailmodel' => $detailmodel
        ])
    ]
];


$this->title = '订购单：'.$model->ordersn;
$this->params['breadcrumbs'][] = ['label' => '订购单', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>


<section class="wrapper site-min-height">
    <!-- page start-->
    <section class="panel">
        <header class="panel-heading">
              <?= Html::a('返回','javascript:history.back(-1)'); ?>  <?= Html::encode($this->title) ?>
        </header>
        <div class="panel-body">
            <div class="adv-table editable-table ">

                <div class="shop-goods-create">


                    <?= TabsX::widget([
                        'items'=>$items,
                        'position'=>TabsX::POS_ABOVE,
                        'encodeLabels'=>false
                    ]);
                    ?>

                </div>

            </div>
        </div>
    </section>
</section>
